<?php
	class diemhkbs
	{
		public $MaHocSinh = "";
		public $MaMonHoc = 0;
		public $KiemTra_Mot = 0;
		public $KiemTra_Hai = 0;
		public $KiemTra_Ba = 0;
		public $DTB_HK = 0;
		public $HocKy = "";
		public $NamHoc = "";
		public $ThiLai = 0;
		public function Add()
		{
			$db = new diemhkdb();
			return $db->Add($this->MaHocSinh, $this->MaMonHoc, $this->KiemTra_Mot, $this->KiemTra_Hai, $this->KiemTra_Ba, $this->DTB_HK, $this->HocKy, $this->NamHoc, $this->ThiLai);
		}
		
		public function Delete()
		{
			$db = new diemhkdb();
			return $db->Delete($this->MaHocSinh, $this->MaMonHoc,  $this->HocKy, $this->NamHoc);
		}
		
		public function Update()
		{
			$db = new diemhkdb();
			return $db->Update($this->MaHocSinh, $this->MaMonHoc, $this->KiemTra_Mot, $this->KiemTra_Hai, $this->KiemTra_Ba, $this->DTB_HK, $this->HocKy, $this->NamHoc, $this->ThiLai);
		}
			
		public function GetList()
		{
			$db = new diemhkdb();
			return $db->GetList($this->MaHocSinh, $this->MaMonHoc, $this->KiemTra_Mot, $this->KiemTra_Hai, $this->KiemTra_Ba, $this->DTB_HK, $this->HocKy, $this->NamHoc);
		}
		public function Find()
		{
			$db = new diemhkdb();
			return $db->Find($this->TenHocSinh, $this->TenMonHoc, $this->KiemTra_Mot, $this->KiemTra_Hai, $this->KiemTra_Ba, $this->DTB_HK, $this->HocKy, $this->NamHoc);
		
		}
		
	}
?>